package entility;

import java.util.HashMap;

public class JobMap extends HashMap<String, Integer>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public JobMap(Job job)
	{
		for(String s:job.getData())
		{
			Machine m = new Machine(s);
			this.put(m.ip, m.port);
		}
		
	}
	
	public Integer get(Object key)
	{
		if(this.containsKey(key))
		{
			 return super.get(key);
		}
		return 0;
	}

}
